package cn.yunhe.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

import java.io.Serializable;
@Data
@Component
public class Computer implements Serializable {
    @Autowired
    private MainFrame mainFrame;
    @Autowired
    @Qualifier(value = "lg")
    private Display display;

    public void computerInfo(){
        System.out.println("计算机配置:");
        mainFrame.mainInfo();
        display.printDisplay();
    }
}
